package run.halo.app.service.front;

import org.springframework.lang.NonNull;
import run.halo.app.model.entity.front.Customer;
import run.halo.app.model.vo.front.CustomerVO;
import run.halo.app.service.base.CrudService;
import java.util.Optional;

public interface CustomerService extends CrudService<Customer,Integer> {
    @NonNull
    Optional<Customer> findByUsername(@NonNull String username);

    @NonNull
    Optional<Customer> findByEmail(@NonNull String email);

    @NonNull
    Optional<Customer> findByPhoneNumber(@NonNull String phoneNumber);

    @NonNull
    Optional<Customer> findByUuid(@NonNull String UUID);
    @NonNull
    Optional<CustomerVO> findByToken(@NonNull String token);
}
